// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * FAQ类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023-02-14
 */
public enum ButlerFaqTypeEnum {
    ALL(0, "全部"),
    SYSTEM(1, "系统"),
    PASSWORD(2, "密码"),
    PROCESS(3, "流程"),
    OTHER(4, "其他");

    private int value;

    private String name;

    ButlerFaqTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        ButlerFaqTypeEnum arrObj[] = ButlerFaqTypeEnum.values();
        for (ButlerFaqTypeEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }
}
